whenRange = ["at the beginning of the frame", "at the end of the frame"]
else
whenDefault = "when the mouse clicks on the sprite"
whenRange = ["when the sprite first appears", "when the sprite leaves the stage", "when the mouse clicks on the sprite", "when the mouse button is released over the sprite", "when the cursor moves over the sprite", "when the cursor moves off of the sprite"]
return "Stops a sound based on a frame or sprite event."
end
on getBehaviorDescription me
return "STOP SOUND" & RETURN & RETURN & "Drop this behavior onto a sprite, the Stage, or the Script channel of the Score to stop a sound based on the movement of the playback head or cursor." & RETURN & RETURN & "When used in the Script channel, this behavior can stop the sound when the playback head enters or leaves the frame. " & "With sprites, the behavior can react to the beginning or end of the sprite, or to mouse events. " & "Choose a sound channel and an event to stop the sound." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Sound channel - which channel to stop" & RETURN & "* When to stop sound - event to trigger stop"